﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CsharpTrainer.Model.Entities;
using CsharpTrainer.Core.DAL;

namespace CsharpTrainer.Domain.Services
{
    public class ContactService
    {
        private IDAO<ContactInfo> _contactDao;
        public IDAO<ContactInfo> ContactDao
        {
            get { return _contactDao; }
            set { _contactDao = value; }
        }

        public ContactService(IDAO<ContactInfo> contactDao)
        {
            this._contactDao = contactDao;
        }

        public ContactInfo GetContact(int contactId)
        {
            return _contactDao.GetSingle(contactId);
        }
    }
}
